import { Select, Picker } from '@pxxtech/mobile';
import { DemoBlock } from 'demos';

const columns = [
  ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N'],
  ['1', '222222222222222222222222222222222', '3'],
];

const Basic = () => {
  return (
    <>
      <DemoBlock title="基础用法">
        <Picker title="选择器" columns={columns}>
          {(val) => <Select label={val.length ? val.join('/') : undefined} />}
        </Picker>
      </DemoBlock>
    </>
  );
};

export default Basic;
